package com.lagou.service;

import org.apache.dubbo.config.annotation.Service;
import org.apache.dubbo.rpc.RpcContext;

@Service
public class HelloServiceImpl implements HelloService {

    @Override
    public String hello() {
        String ip = RpcContext.getContext().getAttachment("ip");
        System.out.println("请求ip:"+ip);
        return "hellp word";
    }
}
